list1 = [1,3,5,7,9,8,6,4,3,1]
list2 =['aa','bb','ff','dd']
list3 = ['aa',2,4,'bb',1,9,'uu',7,'gg']
tuple1 = (1,4,6,5,8,10)
d1 = {'name':'xiaoming','age':18,'class':3}
s1 = {1,3,9,2,6,10,15}
# 最大值
print("最大值")
print(max(list1))
print(max(list2))
#print(max(list3)) 报错提示：int和str无法比较
print(max(tuple1))
print(max(d1))
print(max(s1))

# 最小值
print("最小值")
print(min(list1))
print(min(list2))
#print(max(list3)) 报错提示：int和str无法比较
print(min(tuple1))
print(min(d1))
print(min(s1))

#有序列表，原列表不变，排序后内容就给新列表
list3 = sorted(list1)
print(list1)
print(list3)

list4 = sorted(list2)
print(list2)
print(list4)

tuple3 = sorted(tuple1)
print(tuple1)
print(tuple3)

# 判断数据类型是否一致
b1 = isinstance(list,list)
print(b1)
b2 = isinstance(list1,str)
print(b2)
